package com.demo.bean;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.concurrent.locks.ReentrantLock;

/**
 * 描述：
 *
 * @author lida
 * @time 2019/10/14 15:07
 */
public class NamedSingerDemo {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext("com.demo.bean");

		NamedSinger singer = ac.getBean("johnMayer", NamedSinger.class);
		singer.sing();

		ac.close();
		ReentrantLock lock;
	}
}
